<template>
  <view>
    <view class="not-logged-in" v-if="!loggedIn">请先登录</view>

  </view>
</template>

<script>
  import {didntLoggedIn} from "../util/funcs"

  export default {
    name: 'notLoggedIn',
    data() {
      return{
        loggedIn : true
      }
    },
    mounted(){
      if (didntLoggedIn()){
        this.loggedIn = false
      }
    }
  }
</script>

<style scoped lang="scss">
  @import "../assets/styles/global";
  .not-logged-in{
    color: grey;
    width: 100vw;
    height: 100vw;
    @include center;
  }
</style>
